package com.neusoft.service;

import com.neusoft.po.Credit;

import java.util.List;

public interface CreditService {

    int updateCredit(Credit credit);

    List<Credit> getCreditByUserId(String userId);

    List<Credit> getExpiredPoints(String userId);

    int getTotalCreditByUserId(String userId);

    int initCredit(Credit credit);

    int updateExpiredPoints();

    int consumeCredit(Credit credit,int num);
}
